package PTA_5;

import java.util.Scanner;

public class t8 {
    public static int numofHan(String data[]) {
        int sum = 0;
        for (int i = 0; i < data.length; i++) {
            if(data[i].endsWith("汉族")||data[i].endsWith("汉族人"))
                sum++;
        }
        return sum;
    }
    public static void main(String[] args) {
        final int HUMANNUM=10;
        String persons[]=new String[HUMANNUM];
        Scanner in=new Scanner(System.in);
        for(int i=0;i<persons.length;i++)
            persons[i]=in.nextLine();
        int result=numofHan(persons);
        System.out.println(result);
    }
}
